/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.breakaway.pneumatics;

import com.team1160.breakaway.api.Constants;
import edu.wpi.first.wpilibj.Compressor;

/**
 *
 * @author Team 1160 Firebird Robotics
 */
public class Pneumatics {
    //Static Instance fields
    ////////////////////////////////////////////////////////////////////////////
    protected static final Compressor COMPRESSOR = new Compressor(Constants.C_COMPRESSOR_PRESSURE_SWITCH, Constants.C_COMPRESSOR_RELAY);

    protected final Piston PISTON = new Piston(Constants.C_PISTON_FRONT, Constants.C_PISTON_BACK);

    //constructor
    ////////////////////////////////////////////////////////////////////////////
    public Pneumatics(){}

    //action methods
    ////////////////////////////////////////////////////////////////////////////
    public void start(){
        COMPRESSOR.start();
    }

    public void stop(){
        COMPRESSOR.stop();
    }

    public Piston getPiston(){
        return this.PISTON;
    }
   

}
